import { defineStore } from "pinia";
import { ref } from "vue";


export const useInfoStore = defineStore("userInfo", () => {
    //定义相关状态
    let Info = ref("")

    const setInfo = (newInfo) => {
        Info.value = newInfo;
    }

    const removeInfo = () => {
        Info.value = ''
    }

    return { Info, setInfo, removeInfo }
}, {
    persist: true
}
)